package com.codingman.springdemo2;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo4 {

	public static void main(String[] args) {
		BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		Params params = (Params) factory.getBean("bean41");
		params.show();
		
		Params params2 = (Params) factory.getBean("bean42");
		params2.show();
	}

}
